<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<c:if test="${param['currentMenu']==null}">
    <c:set var="currentMenu" scope="request"><decorator:getProperty property="meta.menu"/></c:set>
</c:if>
<c:if test="${param['currentMenu']!=null}">
    <c:set var="currentMenu" scope="request">${param['currentMenu']}</c:set>
</c:if>

<input type="hidden" id="currentMenu" name="currentMenu" value="${currentMenu}">

<ul class="nav">
    <security:authorize ifAnyGranted="A_主页">
        <li><a class="headitem item1" href="#">主页</a>
            <ul><!-- ul items without this class get hiddden by jquery-->
                <security:authorize ifAnyGranted="A_我的桌面">
                <li id="mydesktop"><a href="${ctx}/home/home.action">我的桌面</a></li>
                </security:authorize>
                <security:authorize ifAnyGranted="A_所有任务">
                <li id="allTasks"><a href="${ctx}/workflow/task!all.action">所有任务</a></li>
                </security:authorize>
                <security:authorize ifAnyGranted="A_待分配任务">
                <li id="queuedTasks"><a href="${ctx}/workflow/task!queued.action">待分配任务</a></li>
                </security:authorize>
                <security:authorize ifAnyGranted="A_我的任务">
                <li id="assigneeTasks"><a href="${ctx}/workflow/task!inbox.action">我的任务</a></li>
                 </security:authorize>
                <%--<li id="myArchived"><a href="${ctx}/workflow/task!archived.action">我完成的任务</a></li>--%>
                <%--<li ><a href="#">我的申请流程</a></li>--%>
            </ul>
        </li>
    </security:authorize>
    <security:authorize ifAnyGranted="A_工作计划">
    <li><a class="headitem item4" href="#">工作计划</a>
        <ul>
            <security:authorize ifAnyGranted="A_我的工作计划">
            <li id="myWorkplan"><a href="${ctx}/plan/workplan.action">我的工作计划</a></li>
             </security:authorize>
            <security:authorize ifAnyGranted="A_下属工作计划">
            <li id='subordinateWorkplan'><a href="${ctx}/plan/workplan!subordinate.action">下属工作计划</a></li>
             </security:authorize>
            <security:authorize ifAnyGranted="A_未写计划下属">
            <li id='noWorkplanUsers'><a href="${ctx}/plan/workplan!noPlan.action">未写计划下属</a></li>
            </security:authorize>
        </ul>
    </li>
    </security:authorize>
    <security:authorize ifAnyGranted="A_终端维护">
    <li><a class="headitem item3" href="#">终端维护</a>
        <ul>
            <security:authorize ifAnyGranted="A_查看终端维护记录">
            <li id="allTerminal"><a href="${ctx}/terminal/terminal.action">查看终端维护记录</a></li>
             </security:authorize>
            <security:authorize ifAnyGranted="A_终端业务提报">
            <li id="submitTerminal"><a href="${ctx}/terminal/terminal!input.action">业务提报</a></li>
             </security:authorize>
        </ul>
    </li>
    </security:authorize>
    <security:authorize ifAnyGranted="A_售后维护">
    <li><a class="headitem item14" href="#">售后维护</a>
        <ul>
            <security:authorize ifAnyGranted="A_查看售后维护记录">
            <li id="allAftersales"><a href="${ctx}/aftersales/aftersales.action">查看售后维护记录</a></li>
            </security:authorize>
            <security:authorize ifAnyGranted="A_售后业务提报">
            <li id="submitAftersales"><a href="${ctx}/aftersales/aftersales!input.action">业务提报</a></li>
            </security:authorize>
        </ul>
    </li>
    </security:authorize>
    <security:authorize ifAnyGranted="A_系统设置">
    <li><a class="headitem item10" href="#">系统设置</a>
        <ul>
        <security:authorize ifAnyGranted="A_用户管理">
             <li id="useManage"><a href="${ctx}/security/user.action">用户管理</a></li>
        </security:authorize>
        <security:authorize ifAnyGranted="A_角色管理">
             <li id="roleManage"><a href="${ctx}/security/role.action">角色管理</a></li>
        </security:authorize>
        <security:authorize ifAnyGranted="A_部门管理">
            <li id="deptManage"><a href="${ctx}/dept/dept.action">部门管理</a></li>
        </security:authorize>
        <security:authorize ifAnyGranted="A_字典管理">
            <li id="codeManage"><a href="${ctx}/system/code.action">字典管理</a></li>
        </security:authorize>
        <security:authorize ifAnyGranted="A_权限管理">
            <li id="authorityManage"><a href="${ctx}/security/authority.action">权限管理</a></li>
        </security:authorize>
        </ul>
    </li>
    </security:authorize>
</ul>
<!--end subnav-->

<div class="flexy_datepicker"></div>





